package com.hundun.hddeal.service.lmpl;

import com.hundun.hddeal.dao.OpenTicketMapper;
import com.hundun.hddeal.entity.OpenTicket;
import com.hundun.hddeal.response.Result;
import com.hundun.hddeal.response.ResultUtil;
import com.hundun.hddeal.service.OpenTicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 开票业务层
 * @author 谢
 */
@Service
public class OpenTicketServiceImpl implements OpenTicketService {
    @Autowired
    OpenTicketMapper openTicketMapper;

    @Override
    public Result deleteByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public Result insertSelective(OpenTicket record) {
        try{
            openTicketMapper.insertSelective(record);
            return ResultUtil.success();
        }catch (Exception e){
            e.printStackTrace();
            return ResultUtil.error();
        }

    }

    @Override
    public Result<OpenTicket> selectByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public Result updateByPrimaryKeySelective(OpenTicket record) {
        return null;
    }
}
